package main

import (
	initplugs "{{.ProjectName}}/init_plugs"
	"{{.ProjectName}}/routers"

	"gitee.com/wu-jin-feng/fgin"
)

func main() {
	fginObj := &fgin.Fgin{}
	server := fginObj.GetHttpServer("./cfg.yaml")
	// 初始化插件
	initplugs.InitPlugs(fginObj)
	// 初始化路由
	routers.InitRouter(server)
	fginObj.Run(server)
}
